package com.bbcare.comm;

import org.apache.commons.logging.*;

/*
 * @name:         应用级异常
 * @author:       DemonLee
 * @createTime:   2017.4.14
 * @description:  应用级别错误信息
 * @modify:
 * 
 */
public class AppException extends BaseException {

    private Log logger = LogFactory.getLog(AppException.class);
    private static final long serialVersionUID = 1L;

    /**
     * 构造函数。根据错误号及程序指定错误信息构造
     * 
     * @param errId
     *            错误号
     * @param errOwnMsg
     *            程序指定错误信息
     *
     */
    public AppException(String errId, String errOwnMsg) {
        this.errId = errId;
        this.errMsg = errOwnMsg;
        logger.error("应用错误编码：" + this.errId);
        logger.error("应用错误信息：" + this.errMsg);
    }

}
